package com.cib.process.bean;

public enum Actions {
    DEFAULE("1000"),
    NUM_CHAR("1001"),  //数字，字母
    PWD("1002"),        //密码
    SUM("1003"),        //金额
    SMS("1004"),       //短信验证码
    TTS("1005"),        //TTS
    ASR("1006"),        //满意度
    CUST_SVC("1007"),   //人工客服
    IVR("1008"),        //IVR首层
    HANGUP("1009"),     //挂机
    ERROR("1010"),      //异常
    CVV2("1011"),      //cvv2

    //zhangh
    EXCEPTION("1111");


    private String code;
    Actions(String code){
        this.code=code;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public static Actions instanceOf(String code){
        for (final Actions action:values()) {
            if (action.getCode().equals(code)){
                return action;
            }

        }
        return null;
    }
}
